package com.djinfo.work.dao.impl;

import com.djinfo.work.common.dao.impl.BaseDaoImpl;
import com.djinfo.work.entity.TbDicFileMd5;
import org.springframework.stereotype.Repository;
import com.djinfo.work.dao.TbDicFileMd5Dao;

/**
 * Created by Administrator on 2016/10/27.
 */
@Repository(value ="tbDicFileMd5Dao")
public class TbDicFileMd5DaoImpl extends BaseDaoImpl implements TbDicFileMd5Dao {


    @Override
    public void save(TbDicFileMd5 tbDicFileMd5) {
        super.save(tbDicFileMd5);
    }

    @Override
    public TbDicFileMd5 getTbDicFileMd5(String md5) {
        String hql=" from TbDicFileMd5 t where t.md5=?";
        return (TbDicFileMd5) super.getUniqueObject(hql,md5);
    }
}
